package hu.bme.aut.consulttime.server.entities;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
@Entity
public class Semester implements Serializable {
	
	private static final long serialVersionUID = 5L;
	
	@Id
	private String semesterId;

	// Reference to Team
	@OneToMany(mappedBy = "semester")
	private List<Team> teams = new ArrayList<Team>();

	public String getSemesterId() {
		return semesterId;
	}

	public void setSemesterId(String semesterId) {
		this.semesterId = semesterId;
	}

	public List<Team> getTeams() {
		return teams;
	}

	public void setTeams(List<Team> teams) {
		this.teams = teams;
	}
}
